package com.tydic.system.controller.system;

import com.tydic.common.core.domain.R;
import com.tydic.common.mybatis.core.page.TableDataInfo;
import com.tydic.common.web.core.BaseController;
import com.tydic.system.domain.bo.QuerySysConfigBo;
import com.tydic.system.domain.vo.SysConfigVo;
import com.tydic.system.service.ISysConfigService;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 参数配置 信息操作处理
 *
 * @author Lion Li
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/portal/config")
public class SysConfigController extends BaseController {

    private final ISysConfigService configService;

    @PostMapping("/getConfigList")
    public R<TableDataInfo<SysConfigVo>> list(QuerySysConfigBo bo) {
        return R.ok(TableDataInfo.build(configService.queryPage(bo)));
    }


}
